package logic

import (
	"context"
	"encoding/json"
	"server/models"
	"server/proto"
)

func (s *ServerRpc) EsInsert(ctx context.Context, in *proto.EsInsertReq) (*proto.EsInsertRes, error) {
	goods, _ := models.GetGoodsInfo()
	res, _ := json.Marshal(goods)
	return &proto.EsInsertRes{Data: res}, nil
}
